﻿<phone:PhoneApplicationPage 
    x:Class="Coding4Fun.MissionControl.WP.Views.AddServerPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="728" d:DesignWidth="480"
    shell:SystemTray.IsVisible="False" Loaded="PhoneApplicationPage_Loaded">

    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.RowDefinitions>
            <RowDefinition Height="100"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <Grid Grid.Row="0">
            <Grid.Background>
                <ImageBrush ImageSource="/Graphics/headlogo.png" Stretch="None"></ImageBrush>
            </Grid.Background>
            
            <TextBlock VerticalAlignment="Center" Text="ADD SERVER" Style="{StaticResource PhoneTextSubtleStyle}" HorizontalAlignment="Right"></TextBlock>
        </Grid>
        
        <StackPanel x:Name="ContentPanel" Grid.Row="1" Margin="12,12,12,60">
            <TextBlock Foreground="Black" Style="{StaticResource PhoneTextLargeStyle}" Text="name:"></TextBlock>
            <TextBox Style="{StaticResource TextBoxWhiteStyle}" BorderBrush="Black" x:Name="txtName" KeyDown="txtName_KeyDown"></TextBox>
            <TextBlock Foreground="Black" Style="{StaticResource PhoneTextLargeStyle}" Text="location:"></TextBlock>
            <TextBox Style="{StaticResource TextBoxWhiteStyle}" BorderBrush="Black" x:Name="txtLocation" KeyDown="txtLocation_KeyDown" />
            <TextBlock Foreground="Black" Style="{StaticResource PhoneTextLargeStyle}" Text="avatar (optional):"></TextBlock>
            <TextBox Style="{StaticResource TextBoxWhiteStyle}" BorderBrush="Black" x:Name="txtAvatar" KeyDown="txtAvatar_KeyDown"></TextBox>
        </StackPanel>
    </Grid>
 
    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="False">
            <shell:ApplicationBarIconButton x:Name="btnAdd" Click="btnAdd_Click" IconUri="/Graphics/appbar.check.png" Text="ok"/>
            <shell:ApplicationBarIconButton x:Name="btnCancel" Click="btnCancel_Click" IconUri="/Graphics/appbar.close.rest.png" Text="cancel"/>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>

</phone:PhoneApplicationPage>
